# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils autotools

DESCRIPTION="Gkremldk is a GKrellM plugin showing current mldonkey 
donwload/upload rate, and to set the maximum of these."
HOMEPAGE="http://www.tof2k.com/gkremldk/"
SRC_URI="http://www.tof2k.com/gkremldk/${PN}-src-${PV}.tbz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc ~sparc ~amd64"
IUSE=""

DEPEND="=app-admin/gkrellm-2*"
RDEPEND=""

src_unpack(){
	tar xf ${DISTDIR}/${PN}-src-${PV}.tbz || die
	cd ${S}
	eautoreconf
}

src_compile(){
	econf || die
	emake || die
}

src_install(){
	insinto /usr/$(get_libdir)/gkrellm2/plugins
	doins gkremldk.so
	dodoc README Changelog
}

